﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="hotelDetail.aspx.vb" Inherits="hotels.hotelDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">



    <p>
        <br />
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="HotelName" HeaderText="HotelName" 
                    SortExpression="HotelName" />
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
                <asp:ImageField DataImageUrlField="Picture" HeaderText="Picture">
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:hotelsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:hotelsConnectionString.ProviderName %>" 
            SelectCommand="SELECT [Description], [HotelName], [Picture] FROM [hotellist] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
    </p>
    <p>
        Add you comment HERE:</p>
    <p>
        <div style="overflow:auto; height:300px; width:400px">
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource2" Height="207px" Width="260px">
            <Columns>
                <asp:TemplateField HeaderText="Comments">
                
                <ItemTemplate>
                <div style="background-color:Silver">
               Title:   <%# Eval("Subject") %><br />
                Author:  <%# Eval("Author") %><br />
                Comment: <%# Eval("Message") %><br />
                </div>
                </ItemTemplate>

                <AlternatingItemTemplate>
                <div style="background-color:white">
                 Title:   <%# Eval("Subject") %><br />
                Author:  <%# Eval("Author") %><br />
                Comment: <%# Eval("Message") %><br />
                </div>
                </AlternatingItemTemplate>

                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        </div>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:hotelsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:hotelsConnectionString.ProviderName %>" 
            SelectCommand="SELECT [Author], [Message], [Subject] FROM [comment] WHERE ([hotelID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="hotelID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
</p>
    <p>
        <asp:CheckBoxList ID="CheckBoxList1" runat="server" 
            DataSourceID="SqlDataSource3" DataTextField="Tag" DataValueField="ID" 
            RepeatDirection="Horizontal">
        </asp:CheckBoxList>
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
            ConnectionString="<%$ ConnectionStrings:hotelsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:hotelsConnectionString.ProviderName %>" 
            SelectCommand="SELECT [Tag], [ID] FROM [Tags] ORDER BY [Tag]">
        </asp:SqlDataSource>
    </p>
<p>
    Name:&nbsp; 
    <asp:TextBox ID="tb_name" runat="server"></asp:TextBox>
</p>
    <p>
        Title:&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="tb_title" runat="server" style="margin-left: 23px" 
            Width="277px"></asp:TextBox>
</p>
    <p>
        Comment:&nbsp;
        <asp:TextBox ID="tb_comment" runat="server" Height="115px" TextMode="MultiLine" 
            Width="287px"></asp:TextBox>
</p>
    <p>
        <asp:Button ID="btn_comment" runat="server" Text="Submut Comment" 
            Width="197px" />
</p>
    <p>
        <asp:Button ID="Button1" runat="server" Text="Button" />
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>



</asp:Content>
